package com.dodoke.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * 人员/商户
 */
@Data
@ToString
@TableName("retail_account")
public class RetailAccount extends BaseEntity{
    private Long id;                    // id
    @NotBlank(message = "请输入电话")
    private String phone;               // 电话
    @NotBlank(message = "请输入姓名")
    private String name;                // 姓名
    private Integer level;              // 等级
    private String isMain;              // 是否为负责人0:否,1:是
    private String accountName;         // 账号名称
    private String status;              // 是否激活0:否,1:是
    private String type;                // 类型0:门店,1:商户
    private Long fromId;                // 所属(门店或商户)id

}
